#include "Core.h"

void Core::OnRender()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glLoadIdentity();

	glBegin(GL_LINE_LOOP);
		glColor3f(1, 0, 0); glVertex3f(100, 100, 0);
		glColor3f(1, 0, 0); glVertex3f(200, 100, 0);
		glColor3f(1, 0, 0); glVertex3f(200, 200, 0);
		glColor3f(1, 0, 0); glVertex3f(100, 200, 0);
	glEnd();

	SDL_GL_SwapBuffers();
}